package com.xzl.management.controller;

import cn.hutool.core.util.ClassUtil;
import com.xzl.management.service.ISStockService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ClassUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.File;

/**
 * @describe ：线程池使用测试
 * @PageLocation:
 * @Auther xzl
 * @Date 2021/11/22 9:37
 */
@RestController
@RequestMapping("/threadTest")
public class ISStockController {
    @Autowired
    private ISStockService isStockService;

    @GetMapping("/")
    @ApiOperation("线程测试方法")
    public void threadTest(Integer integer){
//        System.out.println(path);
        for (Integer i = 0; i < integer; i++) {
            System.out.println("aaaaaaaaaaaaa");
        }
        for (Integer i = 0; i < integer; i++) {
            isStockService.batchSaveList(i);
        }
    }
}
